<h2><?= $this->translate('Updating menu item')?></h2>
<?= $this->form;?>
<script type="text/javascript">
$(document).ready(function(){
	$("#ref").change(function(){
		var value = $("#ref option:selected").val();
		if(value == 'sitemap') {
			$("#sitemap").attr('disabled',false);
			$("#uri").attr('disabled','disabled');
		} else {
			$("#sitemap").attr('disabled','disabled');
			$("#uri").attr('disabled',false);
		}
	});
});
</script>
<p><a href="javascript:window.history.go(-1)">&larr;<?= $this->translate('Back');?></a></p>